package com.qy.qDemo.myTest.model

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

/**
 * 类名：qDemo
 * 作者：zcq
 * 时间：2022/2/10 21:08
 * 描述：
 */
class TestViewModelFactory(private val countReserved: Int) : ViewModelProvider.Factory {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        return TestModel(countReserved) as T
    }
}